<?php
class AuthController extends Controller{
	//构造函数
	public function __construct(){
		parent::__construct();
		if(!$this->checkUser()){
			$this->error('请登录后操作....',U('Admin/Login/Login'));
			exit;
		}
	}
	//后台登录验证
	private function checkUser(){
		return isset($_SESSION['user']) && isset($_SESSION['user']['uid']);
	}

}

?>